package com.swordliu.facebook.Utils;

import org.codehaus.groovy.transform.tailrec.ReturnStatementToIterationConverter;

/**
 * StringUtils
 * Created by SwordLiu on 2017-07-03.
 */
public class StringUtils {

    public static boolean isEmpty(String s) {
        if (s != null && s.equals("")) {
            return true;
        }
        return false;
    }

    public static boolean isNull(String s) {
        return s == null ? true : false;
    }

    public static boolean isNotNull(String s) {
        return s != null ? true : false;
    }

    public static boolean isNotBlank(String s) {
        if (s != null && !s.equals("")) {
            return true;
        }
        return false;
    }

}
